import { Request, Response } from 'express';

// mock tableListDataSource
const dataSource: any[] = [];

for (let i = 0; i < 10; i += 1) {
  dataSource.push({
    key: i,
    id: 123456 + i,
    createTime: '2020-1-1 12:12:12',
    logisName: '测试专用物流中心',
    phone: '18510391039',
    expressName: '圆通快递',
    remark: '备注',
    expCode: 'SF1029203939',
    createUser: '小新',
    logisId: 1,
    expressId: 81,
  });
}

function getRecoverList(req: Request, res: Response, u: string) {
  const result = {
    code: 0,
    message: 'success',
    body: {
      count: 56,
      list: dataSource,
    },
  };

  return res.json(result);
}

export default {
  'GET /recover/list': getRecoverList,
};
